package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IBaseInterface
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.module.ReportModule

/**
 * author: FHP
 * data: on 2018\1\30 0030 17:03
 * E-Mail: 103945089@qq.com
 */
class ReportPresenter(private val iBaseInterface: IBaseInterface) : ReportModule.onReportListener {
    private val module=ReportModule()


    fun report(params: HttpParams){
        module.report(params,this)
    }

    override fun showLoading() {
        iBaseInterface.showLoading()
    }

    override fun onResp(baseBean: BaseBean) {
        iBaseInterface.onResp(baseBean)
    }
}